package com.tbit.manager.api;

import com.tbit.manager.api.dto.UserMemberDTO;
import com.tbit.manager.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 区域礼品卡用户余额
 *
 * @author ：zhangtianyou
 * @since 2024/11/22
 */
@FeignClient(name = ApiConstants.NAME)
public interface MemberFeeApi {

    String PREFIX = ApiConstants.PREFIX + "/memberFee";

    /**
     * 用户购买的免押套餐记录分页
     *
     * @param userId     用户id
     * @param pageSize   条数
     * @param pageNum 页码
     * @return List<UserMemberDTO>
     */
    @GetMapping(PREFIX + "/userMemPage")
    List<UserMemberDTO> userMemPage(@RequestParam("userId") Integer userId,
                                    @RequestParam(value = "pageSize") Integer pageSize,
                                    @RequestParam(value = "pageNum") Integer pageNum);
}
